package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SystemDictMapper;
import com.ruoyi.system.domain.SystemDict;
import com.ruoyi.system.service.ISystemDictService;

/**
 * 字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-22
 */
@Service
public class SystemDictServiceImpl implements ISystemDictService 
{
    @Autowired
    private SystemDictMapper systemDictMapper;

    /**
     * 查询字典
     * 
     * @param id 字典主键
     * @return 字典
     */
    @Override
    public SystemDict selectSystemDictById(Long id)
    {
        return systemDictMapper.selectSystemDictById(id);
    }

    /**
     * 查询字典列表
     * 
     * @param systemDict 字典
     * @return 字典
     */
    @Override
    public List<SystemDict> selectSystemDictList(SystemDict systemDict)
    {
        return systemDictMapper.selectSystemDictList(systemDict);
    }

    /**
     * 新增字典
     * 
     * @param systemDict 字典
     * @return 结果
     */
    @Override
    public int insertSystemDict(SystemDict systemDict)
    {
        return systemDictMapper.insertSystemDict(systemDict);
    }

    /**
     * 修改字典
     * 
     * @param systemDict 字典
     * @return 结果
     */
    @Override
    public int updateSystemDict(SystemDict systemDict)
    {
        return systemDictMapper.updateSystemDict(systemDict);
    }

    /**
     * 批量删除字典
     * 
     * @param ids 需要删除的字典主键
     * @return 结果
     */
    @Override
    public int deleteSystemDictByIds(Long[] ids)
    {
        return systemDictMapper.deleteSystemDictByIds(ids);
    }

    /**
     * 删除字典信息
     * 
     * @param id 字典主键
     * @return 结果
     */
    @Override
    public int deleteSystemDictById(Long id)
    {
        return systemDictMapper.deleteSystemDictById(id);
    }
}
